using System;
using Domain;

namespace ServiceDeclaration.ViewModels
{
    public class UserViewModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Password { get; set; }

        public static UserViewModel Convert(User getById)
        {
            if (getById!=null)
            return new UserViewModel()
                       {
                           Id = getById.Id,
                           Name = getById.Name,
                           Password = getById.Password
                       };
            return null;
        }
    }
}